/*
 * @Autor: dingxiaolin
 * @Date: 2021-06-02 13:12:43
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-07-22 11:58:45
 */
import { IUserState } from './state'

export const mutations = {
    setToken: (state: IUserState, token: string) => {
        state.token = token
    },
    setRoles: (state: IUserState, roles) => {
        state.roles = roles
    },
    setAuthInfo: (state: IUserState, info) => {
        state.info = info
    },
    setUserInfo: (state: IUserState, info) => {
        state.userInfo = info
    }
}
